import request from '@/utils/request'

// 创建设备在线统计
export function createStatisticsDeviceCount(data) {
  return request({
    url: '/ht/statistics-device-count/create',
    method: 'post',
    data: data
  })
}

// 更新设备在线统计
export function updateStatisticsDeviceCount(data) {
  return request({
    url: '/ht/statistics-device-count/update',
    method: 'put',
    data: data
  })
}

// 删除设备在线统计
export function deleteStatisticsDeviceCount(id) {
  return request({
    url: '/ht/statistics-device-count/delete?id=' + id,
    method: 'delete'
  })
}

// 获得设备在线统计
export function getStatisticsDeviceCount(id) {
  return request({
    url: '/ht/statistics-device-count/get?id=' + id,
    method: 'get'
  })
}

// 获得设备在线统计分页
export function getStatisticsDeviceCountPage(query) {
  return request({
    url: '/ht/statistics-device-count/page',
    method: 'get',
    params: query
  })
}

// 导出设备在线统计 Excel
export function exportStatisticsDeviceCountExcel(query) {
  return request({
    url: '/ht/statistics-device-count/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
